I'd like to be able to grab a list of all windows that are open on macOS/OS X from a Python script. This would be the Mac equivalent on win32's EnumWindows API call.
Ideally, I'd like to be able to use this to get a list of the title/caption text of every open window along with position/size information.
Is there an OS or Cocoa API call that will return this info?